package com.itcast.springDemo.ui;

import com.itcast.springDemo.factory.BeanFactory;
import com.itcast.springDemo.service.IUserService;


/**
 * 模拟一个表现层
 * @author 黑马程序员
 * @Company http://www.itheima.com
 */
public class Client {

    public static void main(String[] args) {
//        IUserService userService = new UserServiceImpl();
//        IUserService userService = (IUserService) BeanFactory.getBean("userService");
        for(int i=0;i<5;i++) {
            IUserService userService = (IUserService) BeanFactory.getBean("userService");
            System.out.println(userService);
//            userService.saveUser();
        }
    }
}
